package view;

import java.awt.GridBagLayout;

import javax.swing.JPanel;

import org.omg.CORBA.INITIALIZE;

import domain.Partido;
import javax.swing.BorderFactory;
import java.awt.SystemColor;

public class VPairPartido1X2 extends VPair {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Partido partido;
	
	public VPairPartido1X2() {
		this(new Partido());
	}
	
	public VPairPartido1X2(Partido p) {
		super();
		initialize();
		partido = p;
		getVPartido().setText(partido.toString());
	}
	
	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        this.setBorder(BorderFactory.createLineBorder(SystemColor.activeCaption, 1));
			
	}

	protected JPanel getJPanelRigth()
	{
		if (jPanelRigth == null) {
			jPanelRigth = new V1x2();
		}
		return jPanelRigth;
	}

}
